package com.example.demo.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Detailassessments implements Serializable {
    private String id;

    private String accounttype;

    private String address;

    private Double assesspurchase;

    private Double canUsePurchase;

    private String capitalaccount;

    private String communityname;

    private Date createtime;

    private String filename;

    private String floornumber;

    private String housenumber;

    private Double payaccrual;

    private Double paycapital;

    private String paytype;

    private Integer projectId;

    private Double realaccrual;

    private Double realcapital;

    private String region;

    private Double remaining;

    private String unitnumber;

    private Integer userId;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccounttype() {
        return accounttype;
    }

    public void setAccounttype(String accounttype) {
        this.accounttype = accounttype;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getAssesspurchase() {
        return assesspurchase;
    }

    public void setAssesspurchase(Double assesspurchase) {
        this.assesspurchase = assesspurchase;
    }

    public Double getCanUsePurchase() {
        return canUsePurchase;
    }

    public void setCanUsePurchase(Double canUsePurchase) {
        this.canUsePurchase = canUsePurchase;
    }

    public String getCapitalaccount() {
        return capitalaccount;
    }

    public void setCapitalaccount(String capitalaccount) {
        this.capitalaccount = capitalaccount;
    }

    public String getCommunityname() {
        return communityname;
    }

    public void setCommunityname(String communityname) {
        this.communityname = communityname;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFloornumber() {
        return floornumber;
    }

    public void setFloornumber(String floornumber) {
        this.floornumber = floornumber;
    }

    public String getHousenumber() {
        return housenumber;
    }

    public void setHousenumber(String housenumber) {
        this.housenumber = housenumber;
    }

    public Double getPayaccrual() {
        return payaccrual;
    }

    public void setPayaccrual(Double payaccrual) {
        this.payaccrual = payaccrual;
    }

    public Double getPaycapital() {
        return paycapital;
    }

    public void setPaycapital(Double paycapital) {
        this.paycapital = paycapital;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Double getRealaccrual() {
        return realaccrual;
    }

    public void setRealaccrual(Double realaccrual) {
        this.realaccrual = realaccrual;
    }

    public Double getRealcapital() {
        return realcapital;
    }

    public void setRealcapital(Double realcapital) {
        this.realcapital = realcapital;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public Double getRemaining() {
        return remaining;
    }

    public void setRemaining(Double remaining) {
        this.remaining = remaining;
    }

    public String getUnitnumber() {
        return unitnumber;
    }

    public void setUnitnumber(String unitnumber) {
        this.unitnumber = unitnumber;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Detailassessments other = (Detailassessments) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAccounttype() == null ? other.getAccounttype() == null : this.getAccounttype().equals(other.getAccounttype()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getAssesspurchase() == null ? other.getAssesspurchase() == null : this.getAssesspurchase().equals(other.getAssesspurchase()))
            && (this.getCanUsePurchase() == null ? other.getCanUsePurchase() == null : this.getCanUsePurchase().equals(other.getCanUsePurchase()))
            && (this.getCapitalaccount() == null ? other.getCapitalaccount() == null : this.getCapitalaccount().equals(other.getCapitalaccount()))
            && (this.getCommunityname() == null ? other.getCommunityname() == null : this.getCommunityname().equals(other.getCommunityname()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getFilename() == null ? other.getFilename() == null : this.getFilename().equals(other.getFilename()))
            && (this.getFloornumber() == null ? other.getFloornumber() == null : this.getFloornumber().equals(other.getFloornumber()))
            && (this.getHousenumber() == null ? other.getHousenumber() == null : this.getHousenumber().equals(other.getHousenumber()))
            && (this.getPayaccrual() == null ? other.getPayaccrual() == null : this.getPayaccrual().equals(other.getPayaccrual()))
            && (this.getPaycapital() == null ? other.getPaycapital() == null : this.getPaycapital().equals(other.getPaycapital()))
            && (this.getPaytype() == null ? other.getPaytype() == null : this.getPaytype().equals(other.getPaytype()))
            && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
            && (this.getRealaccrual() == null ? other.getRealaccrual() == null : this.getRealaccrual().equals(other.getRealaccrual()))
            && (this.getRealcapital() == null ? other.getRealcapital() == null : this.getRealcapital().equals(other.getRealcapital()))
            && (this.getRegion() == null ? other.getRegion() == null : this.getRegion().equals(other.getRegion()))
            && (this.getRemaining() == null ? other.getRemaining() == null : this.getRemaining().equals(other.getRemaining()))
            && (this.getUnitnumber() == null ? other.getUnitnumber() == null : this.getUnitnumber().equals(other.getUnitnumber()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAccounttype() == null) ? 0 : getAccounttype().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getAssesspurchase() == null) ? 0 : getAssesspurchase().hashCode());
        result = prime * result + ((getCanUsePurchase() == null) ? 0 : getCanUsePurchase().hashCode());
        result = prime * result + ((getCapitalaccount() == null) ? 0 : getCapitalaccount().hashCode());
        result = prime * result + ((getCommunityname() == null) ? 0 : getCommunityname().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getFilename() == null) ? 0 : getFilename().hashCode());
        result = prime * result + ((getFloornumber() == null) ? 0 : getFloornumber().hashCode());
        result = prime * result + ((getHousenumber() == null) ? 0 : getHousenumber().hashCode());
        result = prime * result + ((getPayaccrual() == null) ? 0 : getPayaccrual().hashCode());
        result = prime * result + ((getPaycapital() == null) ? 0 : getPaycapital().hashCode());
        result = prime * result + ((getPaytype() == null) ? 0 : getPaytype().hashCode());
        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
        result = prime * result + ((getRealaccrual() == null) ? 0 : getRealaccrual().hashCode());
        result = prime * result + ((getRealcapital() == null) ? 0 : getRealcapital().hashCode());
        result = prime * result + ((getRegion() == null) ? 0 : getRegion().hashCode());
        result = prime * result + ((getRemaining() == null) ? 0 : getRemaining().hashCode());
        result = prime * result + ((getUnitnumber() == null) ? 0 : getUnitnumber().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", accounttype=").append(accounttype);
        sb.append(", address=").append(address);
        sb.append(", assesspurchase=").append(assesspurchase);
        sb.append(", canUsePurchase=").append(canUsePurchase);
        sb.append(", capitalaccount=").append(capitalaccount);
        sb.append(", communityname=").append(communityname);
        sb.append(", createtime=").append(createtime);
        sb.append(", filename=").append(filename);
        sb.append(", floornumber=").append(floornumber);
        sb.append(", housenumber=").append(housenumber);
        sb.append(", payaccrual=").append(payaccrual);
        sb.append(", paycapital=").append(paycapital);
        sb.append(", paytype=").append(paytype);
        sb.append(", projectId=").append(projectId);
        sb.append(", realaccrual=").append(realaccrual);
        sb.append(", realcapital=").append(realcapital);
        sb.append(", region=").append(region);
        sb.append(", remaining=").append(remaining);
        sb.append(", unitnumber=").append(unitnumber);
        sb.append(", userId=").append(userId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}